package com.crape.common.service;

import java.util.List;

import com.crape.common.exceptions.ServiceException;
import com.crape.common.model.Account;

public interface IAccountService {

    void save(Account account) throws ServiceException;

    void updateAccount(Account account) throws ServiceException;

    void deleteAccountById(Long id) throws ServiceException;

    List<Account> listAccounts(Account account) throws ServiceException;

    Account getAccountById(Long id) throws ServiceException;

    Account getAccountByEmail(String email) throws ServiceException;

    Account getAccountByNickname(String nickname) throws ServiceException;

}
